<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="招兼职，找兼职用马上兼职.马上兼职为您提供最新，最全，最靠谱的兼职机会">
    <meta name="author" content="马上兼职">
    <link rel="stylesheet" type="text/css" href="../css/bootstrap/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="../css/weixin/main.css"/>
    <script type="text/javascript" src="../js/jquery/jquery-1.11.3.js"></script>
    <title>个人资料设置</title>
    <script type="text/javascript">
        $(function () {
            var gender = "${profile.profile.gender}";
            $("input[type = 'radio'][value = '" + gender + "']").attr("checked", "checked");
        });
    </script>
</head>
<body>

<nav class="navbar navbar-default navbar-static-top">
    <div class="container">


        <p class="navbar-text">
            <a href="javascript:history.go(-1);" class="navbar-link pull-left">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            </a>
        <h4 class="text-center">个人资料设置</h4>
        </p>
    </div>
</nav>


<div class="container ">

    <form action="/weixin/user/update_user_profile" method="post" class="form-horizontal" id="companyForm">
        <input type="hidden" name="educationId" value="${profile.education.id}">
        <input type="hidden" name="profileId" value="${profile.profile.id}">

        <div class="form-group">
            <label for="name" class="col-xs-3 control-label">真实姓名</label>

            <div class="col-xs-8">
                <input type="text" class="form-control input-sm" id="name" name="name"
                       value="${profile.profile.name}" placeholder="真实姓名"
                       aria-describedby="helpName">
            </div>
        </div>
        <span id="helpName" class="help-block p_display"><small>请使用真实姓名，将来转账，收款方名字需要与注册名字一致！</small></span>

        <div class="form-group">
            <label for="gender" class="col-xs-3 control-label">性别</label>

            <div class="col-xs-4">

                <input type="radio" id="gender" name="gender" value="MALE">男
            </div>
            <div class="col-xs-4">
                <input type="radio" name="gender" value="FEMALE">女
            </div>
        </div>

        <div class="form-group">
            <label for="school" class="col-xs-3 control-label">学校</label>

            <div class="col-xs-8">
                <input type="text" class="form-control input-sm" id="school" name="school"
                       value="${profile.education.school}" placeholder="学校">
            </div>
        </div>
        <div class="form-group">
            <label for="grade" class="col-xs-3 control-label">学历</label>

            <div class="col-xs-8">
                <input type="text" class="form-control input-sm" id="grade" name="grade"
                       value="${profile.education.grade}" placeholder="学历">
            </div>
        </div>
        <div class="form-group">
            <label for="age" class="col-xs-3 control-label">年龄</label>

            <div class="col-xs-8">
                <input type="text" class="form-control input-sm" id="age" name="age"
                       value="${profile.profile.age}" placeholder="年龄">
            </div>
        </div>

        <div class="form-group">
            <label for="intro" class="col-xs-3 control-label">简介</label>

            <div class="col-xs-8">
                <textarea rows="5" class="form-control input-sm" cols="35" id="intro" name="intro">${profile.profile.intro}</textarea>
            </div>
        </div>
        <div class="text-center">
            <button type="submit" class="btn btn-primary dpink_1 ">保存</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#name").focus(function () {
            $("#helpName").css("display", "block");
        });
        $("#name").blur(function () {
            $("#helpName").css("display", "none");
        });
    });

</script>

</body>
</html>
